<nav class="navbar navbar-expand-lg navbar-light bg-light">
  <%# <a class="navbar-brand" id="logo" href="#">AMBER BLOG</a> %>
  <%= link_to "Foodie Monster", root_path, class: "navbar-brand", id: "logo"%>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
 
  <div class="collapse navbar-collapse" id="navbarSupportedContent">
    <ul class="navbar-nav mr-auto">
      
      <% if current_user %>
        <li class="nav-item">
          <%= link_to "Profile", user_path(current_user), class:"nav-link"%>
        </li> 
      <% end %> 

      <li class="nav-item active">
        <%= link_to "Articles", articles_path, class: "nav-link"%>
      </li>
        
      <li class="nav-item">
        <a class="nav-link" href="/recipes" >Food Recipes</a>
      </li>
      <% if current_user%>
        <li class="nav-item">
          <a class="nav-link" href="/chats/1">Chat Room</a>
        </li>
      <% end %>
      <li class="nav-item">
        <a class="nav-link" href="/weather" >Weather</a>
      </li>
      <%# <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
              More
        </a>
        <div class="dropdown-menu" aria-labelledby="navbarDropdown">
          <a class="dropdown-item" href="#">About us</a>
          <a class="dropdown-item" href="#">New</a>
          <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="#">Something else here</a>
        </div>
      </li> %>
    </ul>
  </div>
  <section class=""> 
    <%- if current_user -%>
      <li><%= link_to 'Sign Out', destroy_user_session_path, class:"text-white", method: :delete %></li>
    <%- else -%>
      <li><%= link_to 'Sign Up', new_user_registration_path, class:"text-white"%></li>
      <li><%= link_to 'Sign In', new_user_session_path, class: "text-white"%></li>
    <%- end -%>     
  </section>
</nav>  